﻿using DAL;
using IService;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class SysAttachmentService : ISysAttachmentService
    {
        private SysAttachmentDal _sa;
        public SysAttachmentService(SysAttachmentDal sa)
        {
            _sa = sa;
        }
        /// <summary>
        /// 上传附件
        /// </summary>
        /// <param name="sadtoList"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public Task<int> UploadAttachment(List<SysAttachmentDTO> sadtoList)
        {
            return _sa.UploadAttachment(sadtoList);
        }
    }
}
